<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <title>留守儿童信息管理系统</title>
    <link rel="icon" href="favicon.ico" type="image/ico">
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <link href="/css/materialdesignicons.min.css" rel="stylesheet">
    <link href="/css/style.min.css" rel="stylesheet">
    <link href="/css/layer.css" rel="stylesheet">
</head>

<body>
<div class="lyear-layout-web">
    <div class="lyear-layout-container">
        <!--左侧导航-->
        <aside class="lyear-layout-sidebar">
            <!-- logo -->
            <div id="logo" class="sidebar-header">
                <a th:href="@{/index}"><img src="/images/logo-sidebar.png" title="LightYear" alt="LightYear"/></a>
            </div>
            <div class="lyear-layout-sidebar-scroll">

                <nav class="sidebar-main">
                    <ul class="nav nav-drawer">
                        <li class="nav-item"><a th:href="@{/index}"><i class="mdi mdi-home"></i> 后台首页</a></li>
                        <li class="nav-item nav-item-has-subnav active open" id="admin">
                            <a href="javascript:void(0)"><i class="mdi mdi-account"></i> 管理员管理</a>
                            <ul class="nav nav-subnav">
                                <li class="active"><a th:href="@{/adminList}">管理员列表</a></li>
                            </ul>
                        </li>
                        <li class="nav-item nav-item-has-subnav" id="children">
                            <a href="javascript:void(0)"><i class="mdi mdi-account"></i> 留守儿童管理</a>
                            <ul class="nav nav-subnav">
                                <li><a th:href="@{/childrenList}">留守儿童列表</a></li>
                            </ul>
                        </li>
                        <li class="nav-item nav-item-has-subnav" id="veteran">
                            <a href="javascript:void(0)"><i class="mdi mdi-account"></i> 退伍军人管理</a>
                            <ul class="nav nav-subnav">
                                <li><a th:href="@{/veteranList}">退伍军人列表</a></li>
                            </ul>
                        </li>
                        <li class="nav-item nav-item-has-subnav" id="elderly">
                            <a href="javascript:void(0)"><i class="mdi mdi-account"></i> 独居老人管理</a>
                            <ul class="nav nav-subnav">
                                <li> <a th:href="@{/elderlyList}">独居老人列表</a> </li>
                            </ul>
                        </li>
                        <li class="nav-item nav-item-has-subnav" id="gift">
                            <a href="javascript:void(0)"><i class="mdi mdi-account"></i> 礼品管理</a>
                            <ul class="nav nav-subnav">
                                <li><a th:href="@{/giftList}">礼品列表</a></li>
                                <li><a th:href="@{/giftMoney}">礼品金额列表</a></li>

                            </ul>
                        </li>
                        <li class="nav-item nav-item-has-subnav" id="community">
                            <a href="javascript:void(0)"><i class="mdi mdi-account"></i> 社区工作人员管理</a>
                            <ul class="nav nav-subnav">
                                <li><a th:href="@{/communityList}">社区工作人员列表</a></li>
                            </ul>
                        </li>
                        <li class="nav-item nav-item-has-subnav" id="examine">
                            <a href="javascript:void(0)"><i class="mdi mdi-email"></i> 审核管理</a>
                            <ul class="nav nav-subnav">
                                <li><a th:href="@{/regExamine}">注册审核 <span class="badge" th:text="${session.examineStatusSize}" id="examineStatusSize"></span></a></li>
                                <li><a th:href="@{/cancelExamine/{userName}/(userName=${session.username})}">账号注销审核 <span class="badge" id="cancellationSize" th:text="${session.cancellationSize}"></span></a></li>
                                <li><a th:href="@{/delChildrenExamine}">删除儿童信息审核 <span class="badge" th:text="${session.DelChildrenSize}" id="DelChildrenSize"></span></a></li>
                                <li><a th:href="@{/delVeteranExamine}">删除退伍军人审核 <span class="badge" th:text="${session.DelVeteranSize}" id="DelVeteranSize"></span></a></li>
                                <li><a th:href="@{/delElderlyExamine}">删除独居老人审核 <span class="badge" th:text="${session.DelElderlySize}" id="DelElderlySize"></span></a></li>
                                <li><a th:href="@{/giftExamine}">礼品信息审核 <span class="badge" th:text="${session.GiftSize}" id="GiftSize"></span></a></li>
                            </ul>
                        </li>
                        <li class="nav-item nav-item-has-subnav" id="information">
                            <a href="javascript:void(0)"><i class="mdi mdi-message-draw"></i> 信息反馈</a>
                            <ul class="nav nav-subnav">
                                <li><a th:href="@{/feedBack}">信息反馈</a></li>
                            </ul>
                        </li>
                        <li class="nav-item nav-item-has-subnav" id="system">
                            <a href="javascript:void(0)"><i class="mdi mdi-settings"></i> 系统维护</a>
                            <ul class="nav nav-subnav">
                                <li><a th:href="@{/notice}">系统公告</a></li>
                                <li><a th:href="@{/feedBackManage}">信息反馈管理</a></li>
                            </ul>
                        </li>
                    </ul>
                </nav>

                <!--<div class="sidebar-footer">
                  <p class="copyright">Copyright &copy; 2019. All rights reserved. More Templates 更多模板：<a href="http://www.mycodes.net/" target="_blank">模板之家</a></p>
                </div>-->
            </div>

        </aside>
        <!--End 左侧导航-->

        <!--头部信息-->
        <header class="lyear-layout-header" th:fragment="top">

            <nav class="navbar navbar-default">
                <div class="topbar">

                    <div class="topbar-left">
                        <div class="lyear-aside-toggler">
                            <span class="lyear-toggler-bar"></span>
                            <span class="lyear-toggler-bar"></span>
                            <span class="lyear-toggler-bar"></span>
                        </div>
                        <span class="navbar-page-title"> 修改管理员信息 </span>
                    </div>

                    <ul th:replace="~{commons::topbar-right}"></ul>

                </div>
            </nav>

        </header>
        <!--End 头部信息-->

        <!--页面主要内容-->
        <main class="lyear-layout-content">

            <div class="container-fluid">

                <div class="row">
                    <div class="col-lg-12">
                        <div class="card">
                            <div class="card-body">

                                <div class="table-responsive">
                                    <form method="post" >
                                        <input th:value="${user.getId()}" id="id" name="id" hidden="hidden">
                                        <label for="userName">用户名</label><input type="text" th:value="${user.getUserName()}"
                                                                 maxlength="10" class="form-control m-b-5" id="userName"
                                                                 name="userName" disabled="disabled">
                                        <label>姓名</label><input maxlength="6" th:value="${user.getName()}" type="text"
                                                                id="name" name="name" class="form-control m-b-5">
                                        <label for="role">角色</label><br>
                                        <select class="form-control m-b-5" id="role" name="role">
                                            <option th:each="roles:${roles}"
                                                    th:selected="${user.getRole() eq roles.getRoleNumber()}"
                                                    th:value="${roles.getRoleNumber()}"
                                                    th:text="${roles.getRoleName()}"></option>
                                        </select>
                                        <label>密码</label><input maxlength="20" th:value="${user.getPassWord()}"
                                                                type="text" id="passWord" name="passWord"
                                                                class="form-control m-b-5"> <i
                                            class="ace-icon fa fa-eye" title="显示密码" id="see_oldpwd"
                                            οnclick="seePwd(this)"></i>
                                        <label>邮箱</label><input type="email" id="email" th:value="${user.getEmail()}"
                                                                name="email" class="form-control m-b-5">
                                        <label>电话号码</label><input maxlength="11" type="tel" id="tel" th:value="${user.getTel()}"
                                                                  name="tel" class="form-control m-b-5"><br>
                                        <button class="btn btn-primary" type="button" onclick="submit5();">提交</button>
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <button class="btn btn-info" type="button" onclick="javascript:history.go(-1);">
                                            返回
                                        </button>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>

            </div>
            <p th:text="${session.role}" id="p1" hidden></p>
        </main>
        <!--End 页面主要内容-->
    </div>
</div>

<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/layer.js"></script>
<script type="text/javascript" src="/js/admin/adminEdit.js"></script>
<script type="text/javascript">
    var examineStatusSize = $("#examineStatusSize").text();
    if (examineStatusSize == 0){
        document.getElementById("examineStatusSize").style.display = "none";
    }
    var DelChildrenSize = $("#DelChildrenSize").text();
    if (DelChildrenSize == 0){
        document.getElementById("DelChildrenSize").style.display = "none";
    }
    var DelElderlySize = $("#DelElderlySize").text();
    if (DelElderlySize == 0){
        document.getElementById("DelElderlySize").style.display = "none";
    }
    var GiftSize = $("#GiftSize").text();
    if (GiftSize == 0){
        document.getElementById("GiftSize").style.display = "none";
    }
    var DelVeteranSize = $("#DelVeteranSize").text();
    if (DelVeteranSize == 0){
        document.getElementById("DelVeteranSize").style.display = "none";
    }
    var cancellationSize = $("#cancellationSize").text();
    if (cancellationSize == 0){
        document.getElementById("cancellationSize").style.display = "none";
    }
</script>
</body>
</html>